package com.mail.anteater.bean;

public enum SortBy {
	RECEIVEDT,
	SENTDT,
	UNDEFINED;
	
	public static SortBy getStorable(String srt) {
		SortBy sort = null;
		try {
			sort = SortBy.valueOf(srt.toUpperCase());
		} catch (IllegalArgumentException ex) {
			sort = SortBy.UNDEFINED;
		}
		return sort;
	}
}
